import request from '@/utils/request'

// 易耗品出入库分页
export function getList(params) {
  return request({
    url: '/inOutDetails/list',
    method: 'POST',
    params
  })
}

// 新增易耗品出入库
export function addProductsdetail(data) {
  return request({
    url: '/inOutDetails/add',
    method: 'POST',
    data
  })
}

// 查询
export function selectProductsdetail(params) {
  return request({
    url: '/inOutDetails/load',
    method: 'POST',
    params
  })
}

// 删除易耗品出入库
export function deleteProductsdetail(data) {
  return request({
    url: '/inOutDetails/delete',
    method: 'post',
    data
  })
}

// 修改易耗品出入库
export function updateProductsdetail(data) {
  return request({
    url: '/inOutDetails/update',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

// 模糊查询申请人下拉信息
export function selectApplicant(params) {
  return request({
    url: '/projectInvocie/operator',
    method: 'post',
    params
  })
}

// 模糊查询名称下拉信息
export function selectName(params) {
  return request({
    url: '/warehouseStorage/selectName/list',
    method: 'post',
    params
  })
}

// 查所有人
export function selectOperator(params) {
  return request({
    url: '/employee/personnelInfoOther',
    method: 'post',
    params
  })
}
